package org.xxpay.service.dao.mapper;

import org.apache.ibatis.annotations.Param;
import org.xxpay.core.entity.PayDivisionRecord;
import org.xxpay.core.entity.PayDivisionRecordExample;

import java.util.List;
import java.util.Map;

public interface PayDivisionRecordMapper {
    int countByExample(PayDivisionRecordExample example);

    int deleteByExample(PayDivisionRecordExample example);

    int deleteByPrimaryKey(Long id);

    int insert(PayDivisionRecord record);

    int insertSelective(PayDivisionRecord record);

    List<PayDivisionRecord> selectByExample(PayDivisionRecordExample example);

    PayDivisionRecord selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") PayDivisionRecord record, @Param("example") PayDivisionRecordExample example);

    int updateByExample(@Param("record") PayDivisionRecord record, @Param("example") PayDivisionRecordExample example);

    int updateByPrimaryKeySelective(PayDivisionRecord record);

    int updateByPrimaryKey(PayDivisionRecord record);

    List<PayDivisionRecord> selectByAgent(@Param("offset")int offset, @Param("limit")int limit,
                                          @Param("currentAgentId") Long currentAgentId, @Param("record") PayDivisionRecord record);

    int countByAgent(@Param("currentAgentId") Long currentAgentId, @Param("record") PayDivisionRecord record);

}